package com.example.midushop.mapper.brand;

import com.example.midushop.entity.brand.Brand_Category;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 品牌信息映射接口类
 * */
@Mapper
public interface BrandCategoryMapper {
    /**
     * 根据品牌ID以及一级分类ID绑定品牌分类信息
     * @param categoryone_id 一级分类ID
     * @param brand_id 品牌ID
     * @return 返回受影响行数
     */
    int addBrandCategory(@Param("categoryone_id") long categoryone_id,@Param("brand_id") long brand_id);

    List<Brand_Category> getBrand_Category(@Param("categoryone_id") long categoryone_id,@Param("brand_id") long brand_id);
}
